
<div class="pageContent">


	<form method="post" action="__URL__/picSet/navTabId/__MODULE__?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="user_id" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>
		<input type="hidden" name="commodity_id" value="{$commodity_id}" />
		<input type="hidden" name="type" value="{$type}" />
		<div class="pageFormContent" layoutH="58">
			<?php if($type==1){?>
			<div class="unit">
				<label>封面图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['commodity_pic_id']?>" />
			</div>
			<?php }elseif($type==2){?>
			<div class="unit">
				<label>附属图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>附属图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[1]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[1]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>附属图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[2]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[2]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>附属图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[3]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[3]['commodity_pic_id']?>" />
			</div>
			<?php }elseif($type==3){?>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[0]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[1]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[1]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[2]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[2]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[3]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[3]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[4]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[4]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[5]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[5]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[6]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[6]['commodity_pic_id']?>" />
			</div>
			<div class="unit">
				<label>详情图地址：</label>
				<input type="text" class="required" size="60" name="brief_pic[]" value="<?php if(!empty($pic_list)) echo $pic_list[7]['brief_pic']?>" />
				<input type="hidden" name="commodity_pic_id[]" value="<?php if(!empty($pic_list)) echo $pic_list[7]['commodity_pic_id']?>" />
			</div>
			<?php }?>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

